#include<bits/stdc++.h>

using namespace std;

int main() {
    int a;
    int i = 0;
    while (cin >> a) {
        if (a == 0)break;
        cout << "Case " << ++i << ": " << a << endl;

    }

    return 0;
}
